/**
 * 全局指令
 *
 * */

import Vue from 'vue'

const directives = require.context('./modules', false, /\.(js|ts)$/)

directives.keys().forEach(key => {
  const item = directives(key).default
  Vue.directive(item.name, item)
})
